namespace Matrix.ServiceDiscovery.Consts
{
    /// <summary>
    /// 服务实例常量
    /// </summary>
    public static class ServiceInstanceConsts
    {
        /// <summary>
        /// 实例ID最大长度
        /// </summary>
        public const int MaxInstanceIdLength = 128;

        /// <summary>
        /// 主机地址最大长度
        /// </summary>
        public const int MaxHostLength = 256;

        /// <summary>
        /// 协议类型最大长度
        /// </summary>
        public const int MaxProtocolLength = 16;

        /// <summary>
        /// 区域最大长度
        /// </summary>
        public const int MaxRegionLength = 64;

        /// <summary>
        /// 可用区最大长度
        /// </summary>
        public const int MaxZoneLength = 64;

        /// <summary>
        /// 默认协议
        /// </summary>
        public const string DefaultProtocol = "HTTP";

        /// <summary>
        /// 默认权重
        /// </summary>
        public const int DefaultWeight = 1;

        /// <summary>
        /// 最大权重
        /// </summary>
        public const int MaxWeight = 1000;
    }
}